import itertools

data = ['A', 'B', 'C']

combinations = itertools.combinations_with_replacement(data, 2)

for combination in combinations:
    print(combination)